package com.nf.ch03.test05.homework;

import java.util.Random;

/**
 * @author lwj
 * @date 2025-03-03
 * @vesion 1.0.0
 */
public class Rabbit extends Animal{
    // 构造方法
    public Rabbit() {}
    public Rabbit(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(this.getName()+",它奔跑速度为："+new Random().nextInt(100));
    }
}
